package org.aeon.newsmanagersystem.dao;

import org.aeon.newsmanagersystem.pojo.Comments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Mybatis Generator on 2024/03/27
 */
public interface CommentsMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(Comments record);

    int insertSelective(Comments record);

    Comments selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKey(Comments record);

    List<Comments> getByNid(@Param("nid") Integer nid, @Param("start") Integer start, @Param("limit") Integer limit);

    int byNidCount(@Param("nid") Integer nid);

    int delByNid(@Param("nid") Integer nid);
}
